package cn.wangzengqiang.study.designpattern.singleton;

/**
 * 饿汉式单例 变换写法
 */
public class HungryManSingleton1 {
    private static HungryManSingleton1 instance = null;

    static {
        instance = new HungryManSingleton1();
    }

    private HungryManSingleton1() {
    }

    public static HungryManSingleton1 getInstance() {
        return instance;
    }
}
